//
//  FSToDoingReceiveCell.m
//  WZSOA
//
//  Created by 刘沿 on 16/6/20.
//  Copyright © 2016年 刘沿. All rights reserved.
//

#import "FSToDoingReceiveCell.h"

@implementation FSToDoingReceiveCell

+(instancetype)ToDoingReceiveCell{

  return [[[NSBundle mainBundle] loadNibNamed:@"FSToDoingReceiveCell" owner:nil options:nil] lastObject];

}


-(void)setToDoingReceiveModel:(FSToDoingReceiveModel *)ToDoingReceiveModel{

    _ToDoingReceiveModel = ToDoingReceiveModel;

    
    self.titleLabel.text = ToDoingReceiveModel.title;
    
    if (ToDoingReceiveModel.time.length != 0 && ToDoingReceiveModel.state.length != 0 && ToDoingReceiveModel.name.length !=0) {
        self.desLabel.text = [NSString stringWithFormat:@"%@/%@/%@",ToDoingReceiveModel.time,ToDoingReceiveModel.state,ToDoingReceiveModel.name];
    }else if(ToDoingReceiveModel.time.length != 0 && ToDoingReceiveModel.state.length == 0 && ToDoingReceiveModel.name.length ==0){
        
        self.desLabel.text = [NSString stringWithFormat:@"%@",ToDoingReceiveModel.time];
    }
    
    self.iconImage.image = [UIImage imageNamed:@"fileicon.jpg"];

    
    

}


@end
